macro drop _all
clear all

*Compile Raw Datasets
do combine

*Construct datasets for estimation---separately by industry
foreach indus in 151 153 154 155 181 201 221 222 242 281   {
	global ind = `indus'
	do clean_data
}
macro drop _all

*Estimate Production Function, Productivity, and Markups---separately by industry
foreach indus in 151 153 154 155 181 201 221 222 242 281   {
	global ind = `indus'
	do BCHR_code
}
macro drop _all


*Clean, Compile, and Prepare Estimates for Final Analysis
do markups_pre_analysis


*Final Analysis
do tables_figures
